WDV221 Intro Javascript

Project-4 Comparisons and If Statements - In Class Exercise 4


Please complete the following exercises on this page. When complete post the page to your WDV221 folder on the server. Make a link in your WDV221 Intro Javascript page for this assignment. Contact your instructor and demonstrate that you have completed the assignment.

Using Blackboard complete the In Class Exercise Assignment. Download your Homework project and being working on it with your remaining time.

For each exercise use a comment line to put the Exercise number within the script. Also place a short description of what the script is doing.


Use this form to gather input and display results.

Value 1:

Value 2:

Result:

Use the form above for the following exercises

1.

2.

3.

4.

5.

6.

 

Use the following data for the rest of the exercises

Course Number Course Name
WDV101 Intro HTML and CSS
WDV151 Intro Web Design
WDV221 Intro Javascript

7. Create a function that will use if statements to look for the name that corresponds to the course number on the form. Display the name in the Course Name field or a message "Course name not found".

Enter Course Number: Course Name:

8. Create a different function that will use a Switch statement to look for the name that corresponds to the course number on the form. Display the name in the Course Name field or a message "Course name not found".

Enter Course Number: Course Name: